package com.item.service;

import com.item.dao.SubjectDetailMapper;
import com.item.dao.model.SubjectDetail;
import com.item.dao.model.SubjectDetailExample;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SubjectDetailService {
    @Autowired
    private SubjectDetailMapper subjectDetailMapper;

    private static final Logger logger = Logger.getLogger(SubjectDetailService.class);

    public int countByExample(SubjectDetailExample example) {
        return this.subjectDetailMapper.countByExample(example);
    }

    public SubjectDetail selectByPrimaryKey(String id) {
        return this.subjectDetailMapper.selectByPrimaryKey(id);
    }

    public List<SubjectDetail> selectByExample(SubjectDetailExample example) {
        return this.subjectDetailMapper.selectByExample(example);
    }

    public int deleteByPrimaryKey(String id) {
        return this.subjectDetailMapper.deleteByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(SubjectDetail record) {
        return this.subjectDetailMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(SubjectDetail record) {
        return this.subjectDetailMapper.updateByPrimaryKey(record);
    }

    public int deleteByExample(SubjectDetailExample example) {
        return this.subjectDetailMapper.deleteByExample(example);
    }

    public int updateByExampleSelective(SubjectDetail record, SubjectDetailExample example) {
        return this.subjectDetailMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(SubjectDetail record, SubjectDetailExample example) {
        return this.subjectDetailMapper.updateByExample(record, example);
    }

    public int insert(SubjectDetail record) {
        return this.subjectDetailMapper.insert(record);
    }

    public int insertSelective(SubjectDetail record) {
        return this.subjectDetailMapper.insertSelective(record);
    }
}